Conversation
TheFox0x7
left a comment
There was a problem hiding this comment.
This needs more sane way of ignoring base64 strings.
| helo = "helo" | ||
| Helo = "Helo" | ||
| HELO = "HELO" |
There was a problem hiding this comment.
one of them should be enough
| cpy = "cpy" | ||
| odf = "odf" | ||
| # SunOS SMF framework property name | ||
| startd = "startd" |
| [default.extend-identifiers] | ||
| # util.Iif is ternary helper; cannot change: public API | ||
| Iif = "Iif" | ||
| iif = "iif" | ||
| # determineSHAforPR function name; cannot change: public API | ||
| SHAforPR = "SHAforPR" | ||
| Afor = "Afor" |
| # ARIA attribute aria-activedescendant; HTML standard | ||
| actived = "actived" | ||
| Actived = "Actived" |
There was a problem hiding this comment.
bad comment, all the mentions I see refer to dropped column in database.
| # File extension / format name (e.g. Clojure edn, Makefile .mak) | ||
| edn = "edn" | ||
| mak = "mak" | ||
| cpy = "cpy" | ||
| odf = "odf" |
There was a problem hiding this comment.
| # File extension / format name (e.g. Clojure edn, Makefile .mak) | |
| edn = "edn" | |
| mak = "mak" | |
| cpy = "cpy" | |
| odf = "odf" |
| # File extension / icon name in material-icon-rules.json | ||
| stap = "stap" |
There was a problem hiding this comment.
| # File extension / icon name in material-icon-rules.json | |
| stap = "stap" | |
| # File extension / icon name in material-icon-rules.json | |
| stap = "stap" | |
| edn = "edn" | |
| mak = "mak" | |
| cpy = "cpy" | |
| rcall = "rcall" | |
| caf = "caf" |
| caf = "caf" | ||
| claus = "claus" | ||
| Claus = "Claus" | ||
| rcall = "rcall" |
There was a problem hiding this comment.
| caf = "caf" | |
| claus = "claus" | |
| Claus = "Claus" | |
| rcall = "rcall" |
| # Substring in base64 or test data (false positive) | ||
| Ot = "Ot" | ||
| nd = "nd" | ||
| Nd = "Nd" | ||
| ND = "ND" | ||
| iy = "iy" | ||
| Iy = "Iy" | ||
| ba = "ba" | ||
| BA = "BA" | ||
| Pn = "Pn" | ||
| Iz = "Iz" | ||
| ue = "ue" | ||
| Ue = "Ue" | ||
| Mis = "Mis" | ||
| Ser = "Ser" | ||
| Yto = "Yto" | ||
| fo = "fo" | ||
| ist = "ist" | ||
| Ein = "Ein" | ||
| noo = "noo" | ||
| oder = "oder" | ||
| ono = "ono" | ||
| ags = "ags" | ||
| alle = "alle" | ||
| ALLWAYS = "ALLWAYS" |
There was a problem hiding this comment.
while typos has indeed problem with base64 this is not a good approach.
It's a huge bag of items which at times are base64 garbage, are test data or emoji data while it skips a real issue of "Mis" in "Mis-configured".
ALLWAYS is should not be labeled as test data since it's an old config key.
| # Migration function RemoveLabelUneededCols; cannot rename | ||
| Uneeded = "Uneeded" | ||
| # Emoji shortcode "womens" (women's room) in emoji_data.go | ||
| womens = "womens" |
There was a problem hiding this comment.
| womens = "womens" | |
| womens = "womens" | |
| claus = "claus" |
| # TypoScript is a CMS project name, not a typo of TypeScript | ||
| TypoScript = "TypoScript" | ||
| # Meilisearch ranking rule name | ||
| typo = "typo" | ||
| # TYPO3 CMS project name | ||
| TYPO3 = "TYPO3" | ||
| Typo3 = "Typo3" |
|
We already have I think we should not have to babysit a spell checker configuration. If this one works well, I'm not against switching to it, but it needs to be absolutely robust. |
| unparseable = "unparseable" | ||
| # i18n key used in all locale files; cannot change key | ||
| enterred = "enterred" | ||
| # Substring in base64 or test data (false positive) |
| - name: Typos check | ||
| uses: crate-ci/typos@v1.44.0 | ||
| with: | ||
| config: _typos.toml |
There was a problem hiding this comment.
No action-only checks please. Run it during make lint-spell and remove this step. That way it can be ran locally which is very important.
You probably need to add a cargo.toml to pin this tool dependency, similar to what we already do for python using pyproject.toml.
Also if possible integrate it into make lint-spell-fix to automatically fix all errors.
There was a problem hiding this comment.
No action-only checks please
lint-typos was added in the PR so it's runnable locally. Not sure why it's a separate rule and it doesn't cover installation (which I don't mind) but it does exist.
There was a problem hiding this comment.
Ah, I missed that, was only seeing this.
|
Closing this as typos-cli does not cover all features we want it to have - would be a nice thing to have but not possible in the condition as typos-cli currently is |
As requested by @lunny in #36783 I added a typos check
We currently cannot solve all old typos - please tell me if there are some which I would be allowd to fix
For now I only tried to fix some non-breaking ones